package com.chris.design.pattern.samples.chain.demo;

import javax.servlet.*;
import java.io.IOException;

/**
 * 纯的责任链模式的实际例子很难找到，一般看到的例子均是不纯的责任链模式的实现。
 *
 * @author shangpan
 * @since 20/08/2018
 */
public class TestFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
//        ApplicationFilterChain

//        ApplicationFilterFactory
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        filterChain.doFilter(servletRequest, servletResponse);
    }

    @Override
    public void destroy() {

    }
}
